﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MindTree.PerfWorkbench.Azure.Monitor.AzureMonitor;
using MindTree.PerfWorkbench.Azure.Monitor.Core;
using System.ComponentModel;
using System.Windows.Controls;

namespace MindTree.PerfWorkbench.Azure.Monitor
{
    public class CheckedListViewItem : ListViewItem, INotifyPropertyChanged
    {

        private List<CheckedListCellItem> cells = new List<CheckedListCellItem>();

        public List<CheckedListCellItem> Cells
        {
            get
            {
                return cells;
            }
            set
            {
                cells = value;
            }

        }

        //private AzureRoleInstance instance;

        //public AzureRoleInstance Instance
        //{
        //    get
        //    {
        //        return instance;
        //    }
        //    set
        //    {
        //        instance = value;
        //    }
        //}

        //private CounterSet cntrSet;

        //public CounterSet CntrSet
        //{
        //    get
        //    {
        //        return cntrSet;
        //    }
        //    set
        //    {
        //        cntrSet = value;
        //    }
        //}

        //private bool ischecked ;

        public CheckedListViewItem()
        {
            //instance = paramRole;
           // cntrSet = paramSet;
        }

        //public bool IsChecked
        //{
        //    get
        //    {
        //        return ischecked;
        //    }
        //    set
        //    {
        //        ischecked = value;
        //        RaisePropertyChanged("Checked");
        //    }
        //}

        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propName)
        {
            PropertyChangedEventHandler eh = PropertyChanged;
            if (eh != null)
            {
                eh(this, new PropertyChangedEventArgs(propName));
            }
        }
    }
}
